class Game:
    x = "类的属性x"

    def __init__(self):  # 类初始化
        # 类初始化的时候运行的代码
        print("类初始化")
        self.a = 1
    def run(self):
        # 运行其他代码
        print("运行一些代码")
        print("打印self.a = ", self.a)

    def run_other(self):
        # 运行其他代码
        print("运行其他代码")
        b = 2

    def get_x(self):
        print(self.x)


def learn_list():
    x = ["a", "b", "c"]
    print("第一个元素：", x[0])
    print("第二个元素：", x[1])
    print("第三个元素：", x[2])


def learn_int():
    x = 2.1
    print("x = ", int(x))


from abc import ABC, abstractmethod

class Parent(ABC):
    @abstractmethod
    def test(self):
        ...


class Child(Parent):

    def test(self):
        print("test")
    def test1(self):
        print("test1")

